package xhwl.hmo.mall.http.api;

import com.google.gson.Gson;

import okhttp3.RequestBody;
import rx.Observable;
import xhwl.hmo.mall.http.ApiService;
import xhwl.retrofitrx.BaseApi;

/**
 * Created by admin on 2017/6/6.
 */

public class HMOBannerApi extends BaseApi {
    GetSmsApiReq getSmsApiReq;

    public HMOBannerApi() {
        getSmsApiReq = new GetSmsApiReq();
    }

    @Override
    protected Observable getObservable() {
        RequestBody requestBody = RequestBody.create(okhttp3.MediaType.parse("application/json; charset=utf-8"), new Gson().toJson(getSmsApiReq));
        return retrofit.create(ApiService.class).HmoBannerUrl(requestBody);
    }

    public class GetSmsApiReq {

        public GetSmsApiReq() {

        }
    }
}
